#pragma once
#include <iostream>
#include <string>
#include <time.h>
using std::cout, std::endl;

#define DEBUG 1
#define INFO 2
#define WARNING 3
#define FATAL 4

#define LOG(level, message) log(#level, message, __FILE__, __LINE__) 

void log(const std::string& level, const std::string& message, const std::string& file, int line)
{
    cout << "[ " << level << " ] - [ " << time(nullptr) << " ] - [ " << message << " ] - [ " << file << " ] - [" << line << "]" << endl;
}

